<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<html>
<head>
<title>驾校报名</title>
<script type="text/javascript" src="${path}/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${path}/js/H-ui.js"></script>
<script type="text/javascript" src="${path}/js/c.js"></script>
<link href="${path}/css/H-ui.css" rel="stylesheet" type="text/css" />
<link href="${path}/css/font/font-awesome.min.css" rel="stylesheet"
	type="text/css" />
<link href="${path}/lib/iconfont/iconfont.css" rel="stylesheet"
	type="text/css" />

<style type="text/css">
</style>

    
</head>

<body>
	<nav class="breadcrumb">
		<i class="iconfont">&#xf012b;</i> 首页 <span class="c-gray en">&gt;</span>
	教练中心 <span class="c-gray en">&gt;</span>  	学员评价<a
			class="btn btn-success radius r mr-20"
			style="line-height: 1.6em; margin-top: 3px"
			href="javascript:location.replace(location.href);" title="刷新"><i
			class="icon-refresh"></i></a>
	</nav>
	<div class="pd-20">
		<div class="text-c">
			<form action="${path }/goLookComment" method="post" id="dataForm" >
			<input type="hidden"  value="1" name="pageNow" id="pageNow"  >
			
				学员姓名： <input type="text" name="name" value="${student.name }" class="input-text" style="width: 320px;">
				<button  name="" id="" class="btn btn-success" type="submit">
					<i class="icon-search"></i> 搜索
				</button>
			</form>
		</div>
		<div class="cl pd-5 bg-1 bk-gray mt-20">
			<span class="l"></span> <span
				class="r">共有数据：<strong>${pageVo.totalRecold }</strong> 条
			</span>
		</div>
		<table
			class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="10%">学员名称</th>
					<th width="10%">评价时间</th>
					<th width="30%">评价内容</th>
					<th>成绩</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="item" items="${studentList}">
					<tr class="text-c">
						<td>${item.name}</td>
						<td><fmt:formatDate value="${item.comment.time}" type="date"
								dateStyle="long" /></td>
						<td>${item.comment.content}</td>
						<td>
							<table
								class="table table-border table-bordered table-bg table-hover table-sort">
								<thead>
									<tr class="text-c">
										<th width="80">类型</th>
										<th width="80">阶段</th>
										<th>成绩</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach var="initem" items="${item.grades}">
										<tr class="text-c">
											<td>${initem.subjectCate}</td>
											<td>${initem.subjectName}</td>
											<c:if test="${initem.grade eq null }">
												<td>未开考</td>
											</c:if>
											<c:if test="${initem.grade != null }">
												<td>${initem.grade}</td>
											</c:if>
										</tr>
									</c:forEach>
								</tbody>
							</table>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<jsp:include page="_pageNav.jsp"></jsp:include> 
	</div>


	<script type="text/javascript">
		
	</script>

</body>

</html>